package com.dps.metrics.mapper;

import java.util.Map;

@FunctionalInterface
public interface ResultTagMapper<R> {
    Map<String, String> map(boolean isSuccess, R result);

    public static class NoneResultTagMapper implements ResultTagMapper<Object> {
        public NoneResultTagMapper() {
        }

        public Map<String, String> map(boolean isSuccess, Object result) {
            return null;
        }
    }
}
